# Contributor: Niklas Cathor <niklas.cathor@gmx.de>
# Maintainer: Niklas Cathor <niklas.cathor@gmx.de>
pkgname=powerstat
pkgver=0.02.27
pkgrel=0
pkgdesc="tool to measure power consumption"
url="https://github.com/ColinIanKing/powerstat"
arch="all"
license="GPL-2.0-only"
depends="linux-headers"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="https://github.com/ColinIanKing/powerstat/archive/V$pkgver/powerstat-$pkgver.tar.gz
	0001-strlcpy-no-static.patch
	"
options="!check" # no tests

build() {
	make PEDANTIC=1
}

package() {
	make install DESTDIR="$pkgdir"
}
sha512sums="
3bbab9ed88000b277d75f94d9d3e180944d6c8619cf5e7e8b783c9d303fadde47fe9347e93ac7f54c52687afb456bc26c590712486f589602f93058cd144922f  powerstat-0.02.27.tar.gz
38b61eaf84d6551f8f88541b6be011eec473b1c10634a6b9c67aeb38484bb6379a44ded595272d2879ff0eb8b5da72724b6677a4390821ddc66f5e6897c74213  0001-strlcpy-no-static.patch
"
